package com.geping.etl.config;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/***
 *  接口权限配置
 *
 * @author liang.xu
 * @date 2021.8.5
 */
public class AuthConfigData {

    /**
     * 菜单&按钮接口配置
     */
    public static Map<String, List<String>> menuApiAuthData=new HashMap();

    /**
     * todo: can use db:id|res_id|res_name|api_url or handle
     */
    static {
        /**
         * 菜单<---->接口，这里的菜单必须是可以进行授权的
         */
        menuApiAuthData.put("部门管理", Arrays.asList("getSys_DepartmentByLikeDepartmentName","addSys_Department","editSys_Department","deleteSys_Department","exportSys_Department"));
        menuApiAuthData.put("机构管理", Arrays.asList("getSys_OrgByLikeOrgName","addSys_Org","editSys_Org","deleteSys_Org"));
        menuApiAuthData.put("人员信息管理", Arrays.asList("getSys_user","agreenApply","refuseApply","addSys_User","editSys_User","applyReaptPwd","deleteSys_User","applyNoLock","applyDoLock","applyEdit"));
        menuApiAuthData.put("角色管理", Arrays.asList("getAllSys_Auth_Role","findRoleBySubjectId","getSys_Auth_RoleByLikeRoleName","addSys_Auth_Role","updateRoleNameAndRoleDesc","stopSys_Auth_Role","getSys_Menu","saveSysAuthRoleResourceButton"));
        menuApiAuthData.put("角色分配", Arrays.asList("findUserOrgDepartmentByOrgId","getUserAndOrgDepartmentByLikeLoginID","getSysAuthRole_roleNameAndDescription","saveSys_Auth_Role_User"));
        menuApiAuthData.put("查看日志", Arrays.asList("showLogs","exportSys_Logs"));
        menuApiAuthData.put("审核权限分配", Arrays.asList("findRecordBySubject","findReportBySubjectId","addGroupInfo"));
        menuApiAuthData.put("数据表管理", Arrays.asList("dataCount", "dataMarView"));
        menuApiAuthData.put("数据看板管理", Arrays.asList("getAllSys_Auth_Role","addMenu"));
        menuApiAuthData.put("跑批设置", Arrays.asList("PETLEdit","PETLList","PETLDelete","PETLAdd","getNameId","runPath","getSystemName","DownloadLog"));
    }
}